package com.example.studentregistration.service;

import com.example.studentregistration.pojo.Clazz;
import com.example.studentregistration.util.Result;
import com.github.pagehelper.Page;


import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface ClazzService {
    Result<?> insertClazz(Clazz clazz);// 添加班级
    Result<?> updateClazz(Clazz clazz);// 修改班级
    Result<?> deleteClazz(Integer id);// 删除班级
    Page<Clazz> queryClazzPage(Integer currentPage, Integer pageSize, Integer grade, String className);// 分页查询班级
    Result<Clazz> queryClazzById(Integer id);// 查询班级
    Result<?> batchDeleteClazz(List<Integer> ids);// 批量删除班级
    void exportClazzExcel(HttpServletResponse response) throws IOException;// 导出班级信息

    Result<?> queryClazzByClassName(String className);

}
